<template>
  <div class="nap">
    <div class="nap1"></div>
    <div class="nap2"></div>
    <div class="nap3"></div>
    <div ref="qing1" class="chart"></div>
  </div>
</template>

<script>
import { echarts7 } from '../../assets/js/echartsi'
export default {
  name: 'Maps',
  mounted() {
    echarts7(this.$refs.qing1)
  }
}
</script>

<style lang="scss" scoped>
.nap {
  position: relative;
  height: 10.125rem;

  .nap1 {
    width: 6.475rem;
    height: 6.475rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../../assets/img/map.png);
    background-size: 100% 100%;
    opacity: 0.3;
  }
  .nap2 {
    width: 8.0375rem;
    height: 8.0375rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../../assets/img/lbx.png);
    background-size: 100% 100%;
    opacity: 0.5;
    animation: rotatel 15s linear infinite;
  }
  @keyframes rotatel {
    form {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }
  .nap3 {
    width: 7.075rem;
    height: 7.075rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../../assets/img/jt.png);
    background-size: 100% 100%;
    opacity: 0.5;
    animation: rotate2 15s linear infinite;
  }
  @keyframes rotate2 {
    form {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
      transform: translate(-50%, -50%) rotate(-360deg);
    }
  }
  .chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10.125rem;
  }
}
</style>